//#pragma once
//#include<iostream>
//using namespace std;
//int _minval = 0;
//int _maxval = 0;
//int current = 0;
//void set_mode(int x,int y)
//{
//	_minval = x;
//	_maxval = y;
//}
//void set_value(int x)
//{
//	current = x;
//}
//void increment()
//{
//	current = (current + 1 - _minval) % (_maxval - _minval + 1) + _minval;
//}
//void decrement()
//{
//	current = (current - _minval - 1 - _minval + _maxval + 1) % (_maxval - _minval + 1) + _minval;
//
//}
//int get_value()
//{
//	return current;
//}
